package statictest;

public class StaticTest {
	
	public static void main(String[] args) {
		
		A.methodA();
		//A.methodB();	// Error
		
		A a1 = new A();
		A a2 = new A();
		
		a1.methodA();
		a1.methodB();
		
		a1.a = 1;
		System.out.println(a1);
		System.out.println(a2);
		
		a2.a = 3;
		System.out.println(a1);
		System.out.println(a2);
		
		System.out.println("**********");
		
		a1.b = 2;
		System.out.println("a1.b = 2");
		System.out.println(a1);
		System.out.println(a2);
		
		
	}
	
}
